import { Notification } from 'element-ui'

function success(message) {
  Notification.success({
    title: '成功',
    message
  })
}

function warning(message) {
  Notification.warning({
    title: '警告',
    message
  })
}

function error(message) {
  Notification.error({
    title: '失败',
    message
  })
}

function info(message) {
  Notification.info({
    title: '信息',
    message
  })
}

export { success, warning, error, info }
